package com.hh.service.dao.socialize;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hh.common.model.socialize.UserSocializeInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface UserSocializeInfoDao extends BaseMapper<UserSocializeInfo> {
    @Update("update eb_user_socialize_info set number_view = number_view + 1 where uid = #{uid}")
    void increaseView(@Param("uid") Integer uid);

    @Update("update eb_user_socialize_info set number_like = number_like + 1 where uid = #{uid}")
    void increaseLike(@Param("uid") Integer uid);
}
